<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<!-- 这是导航右侧用户登录信息区 -->
<?php if($_G['uid']) { ?>
<!-- 已登录 -->
<div class="ii_nav_info">


<!-- 登录状态 -->
<?php if($_G['group']['allowinvisible']) { ?>
<span id="loginstatus">
<a id="loginstatusid" href="member.php?mod=switchstatus" title="切换在线状态" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
</span>
<?php } ?>
<!-- 登录状态结束 -->

<!-- 消息 -->
<a <?php if($_G['member']['newpm']) { ?>title="新消息"<?php } else { ?>title="消息"<?php } ?> class="msg" href="home.php?mod=space&amp;do=pm" id="pm_ntc">消息
<!-- 存在新消息，提示 -->
<?php if($_G['member']['newpm']) { ?> 
<span  class="ii_tip"></span>
<?php } ?>
</a>
<!-- 消息结束 -->

<!-- 提醒 -->
<div class="info">
<a title="提醒" href="home.php?mod=space&amp;do=notice" id="myprompt" class="a showmenu<?php if($_G['member']['newprompt']) { ?> new<?php } ?>" >提醒
<?php if($_G['member']['newprompt']) { ?>(<?php echo $_G['member']['newprompt'];?>)
<?php } if(!IS_ROBOT) { if($_G['uid']) { ?>
<!--提醒设置-->
<?php if($_G['member']['newprompt']) { ?>
<span class="ii_info_warm"><?php echo $_G[member][newprompt][count];?></span>
<?php } ?>
<!--提醒设置结束-->
<?php } } ?>
</a>
</div>
<!-- 提醒结束 -->


<div class="usr_ico">
<div class="usr_img">
<a href="home.php"><?php echo avatar($_G[uid],small);?></a>
</div>

</div>
</div>


<?php } elseif(!empty($_G['cookie']['loginuser'])) { ?>
<!-- 使用已保存登录cookie信息 -->
<p>
<strong><a id="loginuser" class="noborder"><?php echo dhtmlspecialchars($_G['cookie']['loginuser']); ?></a></strong>
<span class="pipe">|</span><a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)">激活</a>
<span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>
</p>


<?php } elseif(!$_G['connectguest']) { ?>
<!-- 未登录，显示登录框 -->
<div class="ii_show_loginbox" >
<a href="javascript:void(null);" class="ii_login">登陆</a>
</div>

<?php } else { ?>
<!-- 其它情况 -->
<div id="um">
<div class="avt y"><?php echo avatar(0,small);?></div>
<p>
<strong class="vwmy qq"><?php echo $_G['member']['username'];?></strong>
<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?>
<span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>
</p>
<p>
<a href="home.php?mod=spacecp&amp;ac=credit&amp;showcredit=1">积分: 0</a>
<span class="pipe">|</span>用户组: <?php echo $_G['group']['grouptitle'];?>
</p>
</div>





<?php } ?>

<!-- 搜索 -->
<!-- <div class="ii_search">
<a href="search.php?mod=forum" target="_blank" title="搜索">搜索</a>
</div> -->
<!-- 搜索结束 -->
<!-- 这是导航右侧用户登录信息区结束 -->